package com.nwpu.bigdata.service;

import java.util.List;

import com.nwpu.bigdata.model.Rule;

/**
 * @version:2018年7月19日下午10:49:04
 */

/**
 * @author Administrator
 *
 */
public interface RuleService {
    public List<Rule> findRuleDetail() throws Exception;

    public int insertRule(Rule record);

    //根据主机名查找主机id
    public Long selectHostId(String hostName);

    //根据指标名查找指标id
    public Long selectMetricId(String metricNmae);

    //根据triggerfunction名找相应的函数id;
    public Long selectTriggerFuncId(String triggerFuncName);

    public Long selectUserId(String userName);
    
    public byte selectMediaName(String mediaName);
    
    public void deleteRule(Long id);

}
